package com.mdz.sbgl.Controller;


import com.mdz.sbgl.Entity.Hqsjk;
import com.mdz.sbgl.Mapper.HqsjkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 孟德志
 * @since 2020-12-17
 */
@Controller
@RequestMapping("/sbgl/hqsjk")
public class HqsjkController {
    @Autowired
    private HqsjkMapper hqsjkMapper;

    @ResponseBody
    @GetMapping("/getsjk")
    public List<Hqsjk> getsjk(){
        List<Hqsjk> hqsjkList=hqsjkMapper.selectList(null);
        return hqsjkList;
    }
}

